import java.util.Scanner;

public class chengfa

{
  
	public static void main (String args[])
  
	{
    
		Scanner reader = new Scanner(System.in);
    
		int N=reader.nextInt();
    
		int i,j;
    
		for (i=1;i<=N;i++)
    
		{
      
			for (j=1;j<=i;j++)
      
			{
        
				int sum =i*j;
        
				System.out.printf("%d*%d=%-4d",j,i,j*i);

			}
      
		System.out.println();
      
    
		}
  
	}

}